package java6681.wuliu;

/*
 * 交通工具类
 */
public abstract class Transportation {
    private String number; 	// 编号
    private String model; 	// 型号
    private String admin; 	// 运货负责人
    public Transportation() {
        super();//可省略
    }
    public Transportation(String number, String model, String admin) {
        this.number = number;
        this.model = model;
        this.admin = admin;
    }
    // 运输方法
    public abstract void transport();
    // 编号
    public void setNumber(String number) {
        this.number = number;
    }
    public String getNumber() {
        return number;
    }
    // 型号
    public void setModel(String model) {
        this.model = model;
    }
    public String getModel() {
        return model;
    }
    // 负责人
    public void setAdmin(String admin) {
        this.admin = admin;
    }
    public String getAdmin() {
        return admin;
    }
}
